<!DOCTYPE>
<html>
<head>
<meta charset="UTF-8" />
<title>系统后台</title>

  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport"
    content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<!-- <link href="__PUBLIC__/css/admin_layout.css?v=" rel="stylesheet" /> -->
<link href="__ORG__/artDialog/skins/default.css" rel="stylesheet" />
<link href='__PUBLIC__/css/mod.index.css'  rel="stylesheet" />



<link href="__PUBLIC__/css/layui.css?v=" rel="stylesheet" />
<link href="__PUBLIC__/css/admin.css?v=" rel="stylesheet" />


<style>
.refresh,
.full_screen,
.options{
  background: url(__PUBLIC__/images/admin/layout/bg.png);
}
.logo{
  background: url(__PUBLIC__/images/admin/layout/login_logo_y.png) center center no-repeat;
}

.options {
  position: absolute;
  width:27px;
  height:22px;
  right: 25px;
  top: 15px;
  background-position:-180px 0;z-index: 10000;
}
.options a{
  float:left;
  height:22px;
  line-height:22px;
  width:27px;
}
.refresh,
.full_screen{
  text-indent:-2000em;
  overflow:hidden;
}
/*刷新*/
.refresh{
  background-position:-243px -27px;
}
/*全屏*/
.full_screen{
  background-position:-173px -25px;
}




</style>

<script>
    var menu = {$menu};

    if (window.top !== window.self) 
    {
        document.write = '';
        window.top.location.href = window.self.location.href;
        setTimeout(function () {
            document.body.innerHTML = '';
        }, 0);
    }
</script>
</head>

<body class="layui-layout-body">
<div class="wrap">
  <noscript>
  <h1 class="noscript">您已禁用脚本，这样会导致页面不可用，请启用脚本后刷新页面</h1>
  </noscript>



  <div id="LAY_app">
    <div class="layui-layout layui-layout-admin">
      <div class="layui-header">
        <!-- 头部区域 -->
        <ul class="layui-nav layui-layout-left" style="z-index: 10;">
          <li class="layui-nav-item layadmin-flexible" >
            <a href="javascript:;" layadmin-event="flexible" title="侧边伸缩">
              <i class="layui-icon layui-icon-shrink-right" id="LAY_app_flexible"></i>
            </a>
          </li>
          <li class="layui-nav-item layui-this admin1" >
            <a href="javascript:;" style="padding: 0 7px">
              内容
            </a>
          </li>
          <li class="layui-nav-item admin2" >
            <a href="javascript:;">
              设置
            </a>
          </li>
          <li class="layui-nav-item admin3" >
            <a href="javascript:;">
              界面
            </a>
          </li>
<!--           <li class="layui-nav-item admin4" >
            <a>
              面板
            </a>
          </li> -->
        </ul>


<!-- {$group}： 
{$Think.session.nick_name}[ -->
        <ul class="layui-nav layui-layout-right" lay-filter="layadmin-layout-right">
          <li class="layui-nav-item" lay-unselect>
            <a href="javascript:;">
              <cite>{$Think.session.user_name}</cite>
            </a>
            <dl class="layui-nav-child">
              <dd><a href="__ROOT__/" target="_blank">前台首页</a></dd>
              <!-- <dd><a href="javascript:;;" id="deletecache" >缓存更新</a></dd> -->
              <hr>
              <dd style="text-align: center;"><a href="{:U('Login/out')}">退出</a></dd>
            </dl>
          </li>
        </ul>
      </div>

      <!-- 侧边菜单 -->
      <div class="layui-side layui-side-menu">
        <div class="layui-side-scroll">
          <div class="layui-logo" lay-href="console.html">
            <!-- <span>layuiAdmin</span> -->
            <!-- <img src="./lib/layuiadmin/style/res/boosoo-logo.png" class="logo"> -->
            <span>点击未来</span>
          </div>






          <div id="B_menunav">
          <div class="menubar">
          
            <ul id="nav-bar-view" class="layui-nav layui-nav-tree" lay-shrink="all" lay-filter="layadmin-system-side-menu"
            >
              <li class="disabled"></li>
            </ul>
          </div>
          <div id="menu_next" class="menuNext" style="display:none;"> <a href="" class="pre" title="顶部超出，点击向下滚动">向下滚动</a> <a href="" class="next" title="高度超出，点击向上滚动">向上滚动</a> </div>
        </div>



        </div>
      </div>



      <!-- 页面标签 -->
      <div class="layadmin-pagetabs" id="LAY_app_tabs">
        <div class="layui-icon layadmin-tabs-control layui-icon-prev" layadmin-event="leftPage"></div>
        <div class="layui-icon layadmin-tabs-control layui-icon-next" layadmin-event="rightPage"></div>
        <div class="layui-icon layadmin-tabs-control layui-icon-down">
          <ul class="layui-nav layadmin-tabs-select" lay-filter="layadmin-pagetabs-nav">
            <li class="layui-nav-item" lay-unselect>
              <a href="javascript:;"></a>
              <dl class="layui-nav-child layui-anim-fadein">
                <dd layadmin-event="closeThisTabs"><a href="javascript:;">关闭当前标签页</a></dd>
                <dd layadmin-event="closeOtherTabs"><a href="javascript:;">关闭其它标签页</a></dd>
                <dd layadmin-event="closeAllTabs"><a href="javascript:;">关闭全部标签页</a></dd>
              </dl>
            </li>
          </ul>
        </div>
        <div class="layui-tab" lay-unauto lay-allowClose="true" lay-filter="layadmin-layout-tabs">
          <ul class="layui-tab-title" id="LAY_app_tabsheader">
            <li lay-id="console.html" lay-attr="console.html" class="layui-this">
              <i class="layui-icon layui-icon-home"></i>
            </li>
          </ul>
        </div>
      </div>


      <!-- 主体内容 -->
      <div class="layui-body" id="LAY_app_body">
      <div class="options"> <a href="" class="refresh" id="J_refresh" title="刷新">刷新</a> 
      <!-- <a href="javascript:;" id="J_fullScreen" class="full_screen" title="全屏">全屏</a>  -->
      </div>
        <div class="layadmin-tabsbody-item layui-show" id="B_frame">
                
          <iframe src="{:U('Index/copyright')}" frameborder="0" class="layadmin-iframe" id="iframe_default"></iframe>
        </div>
      </div>







      <!-- 辅助元素，一般用于移动设备下遮罩 -->
      <div class="layadmin-body-shade" layadmin-event="shade"></div>
    </div>
  </div>






</div>

<jsconst />

<script src="__ORG__/wind.js"></script>
<script src="__ORG__/jquery.js"></script>
<script src="__PUBLIC__/js/mod.common.js"></script>
<script src='__PUBLIC__/js/mod.index.js'></script>
  <script src="__ROOT__/lib/layuiadmin/layui/layui.js"></script>

<!-- 导航栏模板 -->
  <script id="navBar" type="text/html">
    {{# layui.each(d, function (index, item) { }}
    <li class="layui-nav-item {{index == 0 ? 'layui-nav-itemed' : ''}} {{}}">
      <a href="javascript:;" lay-direction="2">
        <i class="layui-icon layui-icon-home"></i>
        <cite>{{item.title}}</cite>
      </a>
      {{# layui.each(item.views, function(key, value) { }}
      <dl class="layui-nav-child">
        <dd>
          {{# if (!value.views) { }}
          <a lay-href={{value.href || ''}} lay-text={{ value.tagname || ''}}>{{value.name}}</a>
          {{# } else { }}
          <a href='javascript:;' lay-text={{ value.tagname || ''}}>{{value.name}}</a>
          {{# } }}
          <dl class="{{value.views ? 'layui-nav-child' : ''}}">
            {{# layui.each(value.views, function(k, v) { }}
            <dd>
              <a lay-href={{v.href || ''}} lay-text={{ v.tagname || ''}}>{{v.name}}</a>
            </dd>
            {{# }); }}
          </dl>
        </dd>
      </dl>
      {{# }); }}
    </li>
    {{# }); }}
  </script>


<script>




layui.config({
      base: '__ROOT__/lib/layuiadmin/' //静态资源所在路径
    }).extend({
      index: 'lib/index' //主入口模块
    }).use(['index', 'form'], function () {
      




$(function (window) {
    var list = SUBMENU_CONFIG;

    // console.log(datas)
      function NavObj() {};
      NavObj.prototype = {
        // 内容
        admin1: [{
            title: '内容信息管理',
            views: [{
                name: '管理内容',
                href: '__ROOT__/index.php/Admin/Article/welcome.html',
                tagname: ''
              },
              {
                name: '栏目列表',
                href: '__ROOT__/index.php/Admin/Category/index.html'
              },
              {
                name: '附件管理',
                href: '__ROOT__/index.php/Admin/Upload/index.html'
              },
              
              // {
              //   name: '栏目类型',
              //   href: '__ROOT__/index.php/Admin/Type/index.html'
              // },
              {
                name: '留言管理',
                href: '__ROOT__/index.php/Admin/Feedback/index.html'
              }
            ]
          },
          {
            title: '广告信息管理',
            views: [{
                name: '广告列表',
                href: '__ROOT__/index.php/Admin/Ad/index/verifystate/2.html',
                tagname: ''
              },
              {
                name: '广告位置',
                href: '__ROOT__/index.php/Admin/Position/index.html'
              }
            ]
          },
          {
            title: '服务管理',
            views: [{
                name: '碎片数据',
                href: '__ROOT__/index.php/Admin/Debris/index.html'
              },
              {
                name: '客服管理',
                href: '__ROOT__/index.php/Admin/Airlines/index.html'
              }
            ]
          },
          // {
          //   title: '会员信息管理',
          //   views: [{
          //       name: '等级管理',
          //       href: '__ROOT__/index.php/Admin/UserGrade/index.html'
          //     },
          //     {
          //       name: '会员管理',
          //       href: '__ROOT__/index.php/Admin/User/index/role/2.html'
          //     },
          //     {
          //       name: '评论管理',
          //       href: '__ROOT__/index.php/Admin/UserComment/index/verifystate/1.html'
          //     }
          //   ]
          // },
          {
            title: '内容相关设置',
            views: [{
                name: '推荐属性',
                href: '__ROOT__/index.php/Admin/Flag/index.html'
              },
              {
                name: '模型管理',
                href: '__ROOT__/index.php/Admin/Model/index.html'
              }
            ]
          }
        ],

        // 设置
        admin2: [{
            title: '系统设置',
            views: [{
                name: '站点配置',
                href: '__ROOT__/index.php/Admin/Config/index.html',
                tagname: ''
              },
              {
                name: '数据库备份',
                href: '__ROOT__/index.php/Admin/Backup/index.html',
                tagname: ''
              },
              {
                name: '更新缓存',
                href: '__ROOT__/index.php/Admin/Cache/cache.html',
                tagname: ''
              },
            ]
          },
          {
            title: '管理员设置',
            views: [{
                name: '管理员管理',
                href: '__ROOT__/index.php/Admin/User/index/role/1.html',
                tagname: ''
              },
              {
                name: '角色管理',
                href: '__ROOT__/index.php/Admin/AuthGroup/index.html',
                tagname: ''
              },
              {
                name: '规则管理',
                href: '__ROOT__/index.php/Admin/AuthRule/index.html',
                tagname: ''
              },
            ]
          },
          {
            title: '个人信息',
            views: [{
                name: '修改个人信息',
                href: '__ROOT__/index.php/Admin/User/info.html',
                tagname: ''
              },
              {
                name: '修改密码',
                href: '__ROOT__/index.php/Admin/User/change.html',
                tagname: ''
              }
            ]
          }
        ],

        // 界面
        admin3: [{
            title: '模板管理',
            views: [{
                name: '模板风格',
                href: '__ROOT__/index.php/Admin/Templates/index.html',
                tagname: ''
              }
            ]
          }
        ],

        // 我的面板
        // admin4: [{
        //     title: '个人信息',
        //     views: [{
        //         name: '修改个人信息',
        //         href: '__ROOT__/index.php/Admin/User/info.html',
        //         tagname: ''
        //       },
        //       {
        //         name: '修改密码',
        //         href: '__ROOT__/index.php/Admin/User/change.html',
        //         tagname: ''
        //       }
        //     ]
        //   }
        // ],

        // 渲染导航栏
        render(type = 'admin1') {
          layui.use(['laytpl', 'element'], () => {
            let laytpl = layui.laytpl,
              element = layui.element;

            let getTpl = navBar.innerHTML,
              view = document.getElementById('nav-bar-view');

            $('#nav-bar-view').find('span.layui-nav-bar').remove();

            $('#nav-bar-view').hide();
            laytpl(getTpl).render(this[type], function (html) {
              view.innerHTML = html;
            });
            $('#nav-bar-view').fadeIn(300)
            // element.init();
            let layFilter = $("#nav").attr('lay-filter');
            element.render('nav', layFilter);
          })
        },
        // 设置事件
        setEvent() {
          $('.admin1').on('click', function () {
            switchClass.call(this, 'admin1')
          })
          $('.admin2').on('click', function () {
            switchClass.call(this, 'admin2')
          })
          $('.admin3').on('click', function () {
            switchClass.call(this, 'admin3')
          })
          $('.admin4').on('click', function () {
            switchClass.call(this, 'admin4')
          })

          function switchClass(type) {
            navCon.render(type)
            $(this).addClass('layui-this').siblings('li').removeClass('layui-this');
          }
        }
      }

      let navCon = new NavObj();
      navCon.render();
      navCon.setEvent();
    })








      
    });
















// //一级菜单展示
// $(function () {
//     var html = [];
//   iframe_height();  
//     console.log(SUBMENU_CONFIG);
//     $.each(SUBMENU_CONFIG, function (i, o) {
//         html.push('<li class=layui-nav-item layui-this switchShop><a href="" title="' + o.name + '" data-id="' + o.id + '">' + o.name + '</a></li>');
//     });
//     $('#J_B_main_block').html(html.join(''));
//     //后台位在第一个导航
//     $('#J_B_main_block li:first > a').click();
//     //维持在线
//     setInterval(function(){
//         online();
//     }, 60000);
// });


// //一级导航点击
// $('#J_B_main_block').on('click', 'a', function (e) {

//     //取消事件的默认动作
//     e.preventDefault();
//     //终止事件 不再派发事件
//     e.stopPropagation();
//     $(this).parent().addClass('layui-this').siblings().removeClass('layui-this');
//     var data_id = $(this).attr('data-id'),
//         data_list = SUBMENU_CONFIG[data_id],
//         html = [],
//         child_html = [],
//         child_index = 0,
//         B_menubar = $('#nav-bar-view');

//     if (B_menubar.attr('data-id') == data_id) {
//         return false;
//     };
//     //显示左侧菜单
//     show_left_menu(data_list['items']);
//     B_menubar.html(html.join('')).attr('data-id', data_id);
//   //左侧导航复位
//   $("#B_menunav").css({"margin-top":"0px"});

//     //检查是否应该出现上一页、下一页
//     checkMenuNext();





//     //显示左侧菜单
//     function show_left_menu(data) {
//         // console.log(data,'sssssssssss')
//         for (var attr in data) {
//             if (data[attr] && typeof (data[attr]) === 'object') {
//                 //循环子对象
//                 if (!data[attr].url && attr === 'items') {
//                     //子菜单添加识别属性
//                     $.each(data[attr], function (i, o) {
//                         child_index++;
//                         o.isChild = true;
//                         o.child_index = child_index;
//                     });
//                 }
//                 show_left_menu(data[attr]); //继续执行循环(筛选子菜单)
//             } else {
//                 if (attr === 'name') {
//                     data.url = data.url ? data.url : '#';
//                     if (!(data['isChild'])) {
//                         //一级菜单
//                         // html.push('<dt><a href="' + data.url + '" data-id="' + data.id + '"><b>' + data.name + '</b></a></dt>');
//                         html.push('<li class=layui-nav-item layui-nav-itemed><a href=' + data.url +'><i class="layui-icon layui-icon-home"></i><cite>' + data.name + '</cite> <span class=layui-nav-more></span></a>')
//                     } else {
//                         //二级菜单
//                         // child_html.push('<li><a href="' + data.url + '" data-id="' + data.id + '">' + data.name + '</a></li>');
//                         child_html.push('<dl class="layui-nav-child"><dd><a class=s href="' + data.url + '" data-id="' + data.id + '">' + data.name + '</a></dd></dl>')

//                         //二级菜单全部push完毕
//                         if (data.child_index == child_index) {
//                             html.push(child_html.join('') + '</li>');
//                             child_html = [];
//                         }
//                     }
//                 }
//             }
//         }
//     };


// });
// //左边菜单点击
// $('#nav-bar-view').on('click', 'a.s', function (e) {

//     e.preventDefault();
//     e.stopPropagation();


//   iframe_height();
//     var $this = $(this),
//         _dt = $this.parent(),
//         _dd = _dt.next('dd');
//     $("#nav-bar-view li").removeClass('current');
//     //当前菜单状态
//     _dt.addClass('current').siblings('dt.current').removeClass('current');

//     //子菜单显示&隐藏
//     if (_dd.length) {
//         _dt.toggleClass('current');
//         _dd.toggle();
//         //检查上下分页
//         checkMenuNext();
//         return false;
//     };

//     $('#loading').show().focus(); //显示loading
//     $('#LAY_app_tabsheader li').removeClass('layui-this');
//     var href = this.href;
//     var data_id = $(this).attr('data-id'),
//         hrefs = $(this).attr('href'),
//         li = $('#LAY_app_tabsheader li[data-id=' + data_id +  ']');
   

//     iframeJudge({
//         elem: $this,
//         href: href,
//         id: data_id
//     });

// });













</script>
</body>
</html>